            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <li><%= image_tag("house_go.png", :align=>"absmiddle")%> <%= link_to "返回#{@site.title}", site_path(@site) %></li>
                </ul>
            </div>
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                > <%= link_to "#{@site.title}", site_path(@site) %>
                > 发布帖子
            </div>
            <% end -%>
            <div class="box">
                <%= error_message_on "post", "title" %>
                <%= error_message_on "post", "content" %>
                <% form_tag({:action => 'newpost'}) do -%>
                    <%= render :partial => 'postForm' %>
                    
                    <p><label for="newpost_tags">标签</label><br/>
                        <%= text_field("newpost", "tags")%>
                    </p>
                    <p><label for="newpost_tags">我的标签:</label><br/>
                        <% @user_tags.each do |tag| %>
                            <span id="t_0" class="tl" onclick="fill_tags_input('<%= tag.name%>');"><%= tag.name%></span>
                        <% end %>
                    </p>
                    <p><label for="newpost_tags">大家常用的标签:</label><br/>
                        <% @all_users_tags.each do |tag| %>
                            <span id="t_0" class="tl" onclick="fill_tags_input('<%= tag.name%>');"><%= tag.name%></span>
                        <% end %>
                    </p>
                    <input id="post_site_id" name="post[site_id]" type="hidden" value="<%=@site.id%>"/>
                    <%= submit_tag "提交" %>
                <% end -%>
            </div>


